package com.ruoyi.eqmonitor.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备历史对象 biz_device_history
 * @author breeze
 * @date 2022-12-15
 */
@Data
@TableName("biz_device_history")
public class BizDeviceHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 主键 */
	@TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String deviceCode;

    /** 设备类型名称 */
    @Excel(name = "设备类型名称")
    private String deviceTypeName;

    /** 单位 */
    @Excel(name = "单位")
    private String monitorUnit;

    /** 监测指标 */
    @Excel(name = "监测指标")
    private String monitorQuota;

    /** 数据值 */
    @Excel(name = "数据值")
    private String monitorData;

    /** 时间(秒级时间戳) */
    @Excel(name = "时间(秒级时间戳)")
    private String stamp;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 监测指标名称 */
    @Excel(name = "监测指标名称")
    private String monitorQuotaName;

    /** 时间(时间) */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间(时间)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;
}
